<div id="wrapper">
	<!--左侧导航开始-->
	<?=\app\widgets\MenuWidget::widget();?>
	<!--左侧导航结束-->
	<!--右侧部分开始-->
	<div id="page-wrapper" class="gray-bg dashbard-1">
		<?=$this->render('@app/modules/admin/views/layouts/inc_naver');?>
		<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5>文章管理<small>编辑文章</small></h5>
					</div>
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="commentForm" method="post" action="/admin/article/edit">
							<div class="form-group">
								<label class="col-sm-1 control-label" for="group_id">文章标题</label>
								<div class="col-sm-4">
									<input id="cname" name="Art[title]" value="<?php echo isset($data['title']) ? $data['title'] : '';?>" minlength="2" type="text" class="form-control" required="" aria-required="true">
									<input id="" type="hidden" class="form-control" name="id" value="<?php echo $id;?>" >
									<input name="_csrf" type="hidden" id="_csrf" value="<?= Yii::$app->request->csrfToken ?>">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-1 control-label">简介：</label>
								<div class="col-sm-9">
									<textarea id="Art[intro]" name="Art[intro]" rows="5" cols="80"><?php echo isset($data['intro']) ? $data['intro'] : '';?></textarea>	
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-1 control-label">内容：</label>
								<div class="col-sm-9">
									<?=\kucha\ueditor\UEditor::widget(['name' => 'Art[content]','value' => isset($data['content']) ? $data['content'] : '' ,"options" => ["id" => 'Art[content]']]);?>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-1 control-label" for="group_id">文章状态：</label>
								<div class="col-sm-4">
									<select id="groupId" class="form-control valid" name="Art[status_is]" aria-invalid="false">
										<option value="1" <?php if (isset($data['status_is']) && $data['status_is'] == 1):?>selected="selected"<?php endif;?>>上线</option>
										<option value="0" <?php if (isset($data['status_is']) && $data['status_is'] == 1):?>selected="selected"<?php endif;?>>下线</option>
									</select>
								</div>
							</div>
							
							<div class="form-group">
								<div class="col-sm-4 col-sm-offset-3">
									<button class="btn btn-primary" type="submit">提交</button>
									<a class="btn btn-white" href="/admin/article/index">取消</a>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
		</div>
	</div>
	<!--右侧部分结束-->
</div>

<script src="/static/js/jquery.min.js?v=2.1.4"></script>
<script src="/static/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/static/js/plugins/peity/jquery.peity.min.js"></script>
<script src="/static/js/plugins/iCheck/icheck.min.js"></script>
